package entity;

public class TokenInfo {
    private String access_token;
    private String refresh_token;
    private int expires_in;
    private String openid;
    private String scope;
    private String is_snapshotuser;
    private String unionid;


    public TokenInfo() {
    }

    public TokenInfo(String access_token, String refresh_token, int expires_in, String openid, String scope, String is_snapshotuser, String unionid) {
        this.access_token = access_token;
        this.refresh_token = refresh_token;
        this.expires_in = expires_in;
        this.openid = openid;
        this.scope = scope;
        this.is_snapshotuser = is_snapshotuser;
        this.unionid = unionid;
    }

    /**
     * 获取
     * @return access_token
     */
    public String getAccess_token() {
        return access_token;
    }

    /**
     * 设置
     * @param access_token
     */
    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    /**
     * 获取
     * @return refresh_token
     */
    public String getRefresh_token() {
        return refresh_token;
    }

    /**
     * 设置
     * @param refresh_token
     */
    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    /**
     * 获取
     * @return expires_in
     */
    public int getExpires_in() {
        return expires_in;
    }

    /**
     * 设置
     * @param expires_in
     */
    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    /**
     * 获取
     * @return openid
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置
     * @param openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取
     * @return scope
     */
    public String getScope() {
        return scope;
    }

    /**
     * 设置
     * @param scope
     */
    public void setScope(String scope) {
        this.scope = scope;
    }

    /**
     * 获取
     * @return is_snapshotuser
     */
    public String getIs_snapshotuser() {
        return is_snapshotuser;
    }

    /**
     * 设置
     * @param is_snapshotuser
     */
    public void setIs_snapshotuser(String is_snapshotuser) {
        this.is_snapshotuser = is_snapshotuser;
    }

    /**
     * 获取
     * @return unionid
     */
    public String getUnionid() {
        return unionid;
    }

    /**
     * 设置
     * @param unionid
     */
    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String toString() {
        return "TokenInfo{access_token = " + access_token + ", refresh_token = " + refresh_token + ", expires_in = " + expires_in + ", openid = " + openid + ", scope = " + scope + ", is_snapshotuser = " + is_snapshotuser + ", unionid = " + unionid + "}";
    }
}
